/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background-color: #f8f9fa;
  color: #333;
}

.container {
  width: 100%;
  max-width: 414px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
}

/* 头部区域 */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  position: relative;
}

.back-button {
  background: none;
  border: none;
  font-size: 24px;
  color: #333;
  cursor: pointer;
}

.skip-button {
  background: none;
  border: none;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  padding: 4px 8px;
}

.progress-bar {
  width: 100px;
  height: 6px;
  background-color: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
  margin: 0 20px;
}

.progress {
  height: 100%;
  background-color: #f47c4a;
  border-radius: 3px;
}

/* 标题 */
.title {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  margin: 30px 0 20px;
}

/* 性别选择项 */
.gender-option,
.goal-option,
.height-input-container,
.weight-input-container,
.target-weight-input-container {
  display: flex;
  align-items: center;
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 16px;
  background-color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gender-option.selected,
.goal-option.selected {
  border-color: #f47c4a;
  background-color: #fff5f0;
}

.icon {
  width: 24px;
  height: 24px;
  margin-right: 12px;
}

.female-icon,
.male-icon {
  fill: #f47c4a;
}

.label {
  font-size: 16px;
  color: #333;
}

/* 目标选项 */
.goal-option {
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 16px;
  background-color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.goal-option.selected {
  border-color: #f47c4a;
  background-color: #fff5f0;
}

/* 身高/体重输入框 */
.input-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0;
}

.height-input,
.weight-input,
.target-weight-input {
  width: 80px;
  height: 60px;
  text-align: center;
  font-size: 24px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: white;
  outline: none;
}

.unit-label {
  margin-left: 8px;
  font-size: 16px;
  color: #666;
}

.unit-toggle {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  gap: 8px;
}

.unit-toggle button {
  padding: 6px 16px;
  border: 1px solid #ddd;
  background-color: white;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.unit-toggle button.active {
  background-color: #f47c4a;
  color: white;
  border-color: #f47c4a;
}

/* 下一步按钮 */
.next-button1 {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 400px;
  margin: 0;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.next-button1.enabled {
  background-color: #f47c4a;
  color: white;
}

.next-button1.disabled {
  background-color: #f47c4a;
  color: white;
  cursor: not-allowed;
}

/* 按钮悬停效果 */
.next-button1:hover:not(.disabled) {
  background-color: #e06b3a;
}
/* 新增：选项卡卡片 */
.option-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 16px;
  background-color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.option-card.selected {
  border-color: #f47c4a;
  background-color: #fff5f0;
}

.option-title {
  font-size: 16px;
  color: #333;
}

.option-desc {
  font-size: 14px;
  color: #666;
}

.checkbox {
  width: 20px;
  height: 20px;
  border: 1px solid #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.check-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.check-icon.checked {
  background-color: #f47c4a;
}

/* 加载动画容器 */
.loading-container {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.progress-circle {
  position: relative;
  width: 120px;
  height: 120px;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.description {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin: 20px 0;
}